package com.base.frame.business;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.frame.business.service.SysService;
import com.base.frame.model.SysConfig;
import com.base.frame.system.PagerModel;

@Service("startOnLoadService")
public class StartOnLoadService
{

    @Autowired
    private SysService sysService;

    public void loadData()
    {

        PagerModel pm = sysService.getList();

        List d = pm.getDatas();

        SysConfig sc = null;

        for (int i = 0; i < d.size(); i++)
        {
            sc = (SysConfig) d.get(i);
            Init.getMap().put(sc.getKeyword(), sc.getValue());
        }

    }

}
